package com.atguigu.gulimall.product.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gulimall.thread")
@Data
@Primary
public class ThreadPoolConfigProperties {

    private Integer coreSize=10;
    private Integer maxSize=100;
    private Integer keepAliveTime=10;
}
